package config;

public enum HttpStatusConfig {
    OK(200, "成功"),
    FAIL(401, "无权限访问"),
    ;

    private final int code;
    private final String message;

    HttpStatusConfig(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode(){
        return this.code;
    }

    public String getMessage(){
        return this.message;
    }

}
